This paper demonstrates the fundamental principle systematically , including the design process of a halbach motor . in order to make the design more easier and reduce the designing period , cad is applied to the motor design : the concise matlab language , to some extend , reduces the workload in electromagnetism design ; the mathematic modeling and collating programs compiled by apdl language in ansys substantiate the precision of the electromagnetism design 為了減少電機(jī)設(shè)計(jì)的工作量和縮短電機(jī)開發(fā)的周期,本課題對halbach電機(jī)采用計(jì)算機(jī)輔助設(shè)計(jì):簡潔的matlab語言在一定程度上減少了halbach電機(jī)電磁設(shè)計(jì)的工作量,縮短了電機(jī)開發(fā)的周期;利用ansys自帶的apdl語言編寫的halbach電機(jī)建模與校核程序保證了電磁設(shè)計(jì)的準(zhǔn)確性。